package com.zhs.demoutil.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author: zhs
 * @date: 2020/7/6 15:28
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "管理员")
public class Admin{

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @ApiModelProperty("用户姓名")
    private String username;
    @ApiModelProperty("密码")
    private String password;
    @ApiModelProperty("真实姓名")
    private String realName;
    @ApiModelProperty("手机号")
    private String mobile;
    @ApiModelProperty("所属区")
    private String region;
    @ApiModelProperty("所属街道")
    private String street;

    @ApiModelProperty("用户状态，0正常，1冻结")
    private Integer status;

    @JsonIgnore
    private String salt;

    @ApiModelProperty("所属街道")
    private Integer userManager;
    @ApiModelProperty("核算对比，0不可以，1可以")
    private Integer compare;
    @ApiModelProperty("核算查询，0不可以，1可以")
    private Integer query;

    @ApiModelProperty("创建时间")
    private Date createTime;
    @ApiModelProperty("更新时间")
    private Date updateTime;

}
